import request from '../utils/request';

export async function create(body) {
  return request('/api/dic/create', {
    method: 'POST',
    body,
  });
}
export async function findMany(body) {
  return request('/api/dic/find/many', {
    method: 'POST',
    body,
  });
}

export async function updateOne(body) {
  return request('/api/dic/update', {
    method: 'POST',
    body,
  });
}
export async function deleteOne(body) {
  return request('/api/dic/delete', {
    method: 'POST',
    body,
  });
}

export async function createPic(body) {
  return request('/api/dic/pic/create', {
    method: 'POST',
    body,
  });
}
export async function findPicMany(body) {
  return request('/api/dic/pic/find/many', {
    method: 'POST',
    body,
  });
}

export async function updateOnePic(body) {
  return request('/api/dic/pic/update', {
    method: 'POST',
    body,
  });
}

export async function deleteFile(body) {
  return request('/api/dic/file/delete', {
    method: 'POST',
    body,
  });
}
export async function findFileMany(body) {
  return request('/api/dic/file/find/many', {
    method: 'POST',
    body,
  });
}
export async function uploadFile(body) {
  return request('/api/dic/file/upload', {
    method: 'POST',
    body,
  });
}
